﻿using System.Collections.Generic;
using DataType.CustomEnumType;

namespace DataType.JudgeResults
{
    public class OccupyJudgeResult : IJudgeResult
    {
        private int obj_id;
        private ActionType action_type = ActionType.Occupy;
        private bool is_success;
        private int cityCoord;
        private Color opr_color;

        public int ObjID => obj_id;

        public ActionType ActionType => action_type;

        public bool IsSuccess => is_success;

        public int CityCoord { get => IsSuccess ? cityCoord : -1; }  // 裁决成功返回坐标，否则返回-1

        public Color OprColor { get => opr_color; }

        public OccupyJudgeResult(int obj_id, bool is_success, int cityCoord, Color opr_color)
        {
            this.obj_id = obj_id;
            this.is_success = is_success;
            this.cityCoord = cityCoord;
            this.opr_color = opr_color;
        }
    }
}
